#!/bin/bash
# 诊断加密解密问题的脚本

echo "=== 加密解密问题诊断 ==="

# 编译简单测试工具
echo "1. 编译简单测试工具..."
make clean > /dev/null 2>&1
make simple

if [ $? -ne 0 ]; then
    echo "✗ 编译失败"
    exit 1
fi

echo "✓ 编译成功"

# 运行位操作测试
echo ""
echo "2. 运行诊断测试..."
./bin/simple_test

echo ""
echo "=== 诊断完成 ==="